# Contributor: sick <sick@rape.lol>
# Maintainer: sick <sick@rape.lol>
pkgname=nnn
pkgver=1.5
pkgrel=0
pkgdesc="The missing terminal file browser for X"
url="https://github.com/jarun/nnn"
arch="all"
license="BSD-2"
depends="readline ncurses-libs"
makedepends="readline-dev ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/nnn/archive/v$pkgver.tar.gz
	fix-sys-types_h.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR=$pkgdir \
	install || return 1
}

sha512sums="df66c93aa0a742ee888940de0f62a37fbbfc3e8308db1b0196816e54277bbf255a490410a3658ec764c184bacb9c53dc4a6503098f9b9196e9014dc5a0897d5a  nnn-1.5.tar.gz
32ee1fcf1b7ccd0f9a027c522905607ae9bea236c5c9cdbe26d7d87881c6e6846075a927c3e185bd08a771883e727a487674d052aec628771b0dfa4f6648ead6  fix-sys-types_h.patch"
